﻿<%@ Page Language="c#" CodeBehind="MyTaskList.aspx.cs" AutoEventWireup="false" Inherits="BEGDC.CC.Web.Workflow.MyTaskList" %>

<%@ Register TagPrefix="uc2" TagName="Title" Src="../UserControls/Title.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Menu" Src="../UserControls/Menu.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Banner" Src="../UserControls/Banner.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>MyTaskList</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="../CSS/style.css" type="text/css" rel="stylesheet">

    <script language="javascript">
        function ShowWindow() {
            if (document.Form1.tbShowTQSample.value == "Yes")
                window.open("ShowTQSample.aspx", null, "height=600px,width=800px,status=no,toolbar=no,menubar=yes,location=no,scrollbars=yes");
            else if (document.Form1.tbShowIQSample.value == "Yes")
                window.open("ShowIQSample.aspx", null, "height=600px,width=800px,status=no,toolbar=no,menubar=yes,location=no,scrollbars=yes");
            else if (document.Form1.tbShowPrintForm.value == "Yes")
                window.open("CommonPrintForm.aspx", null, "height=600px,width=800px,status=no,toolbar=no,menubar=yes,location=no,scrollbars=yes");
            else if (document.Form1.tbShowSampleReceive.value != "")
                window.open("SampleReceiveForm.aspx?Type=" + document.Form1.tbShowSampleReceive.value, null, "height=600px,width=800px,status=no,toolbar=no,menubar=yes,location=no,scrollbars=yes");

        }
    </script>

</head>
<body onload="ShowWindow();" ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td>
                <!--Begin Body-->
                <table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td valign="top" width="18%">
                            <uc2:Menu ID="Menu1" runat="server"></uc2:Menu>
                        </td>
                        <td valign="top" align="center" width="82%" bgcolor="#ffffff">
                            <table cellspacing="0" cellpadding="0" width="95%" border="0">
                                <tr>
                                    <td valign="top" colspan="6" height="10">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <table cellspacing="0" cellpadding="0" align="left" border="0">
                                            <tr>
                                                <td valign="middle">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td class="selectedTab" valign="middle" align="center" width="100" height="20">
                                                </td>
                                                <td class="tabSep" width="4">
                                                    &nbsp;
                                                </td>
                                                <td class="unselectedTab" valign="middle" align="center" width="100" height="20">
                                                    <span style="cursor: hand" onclick="window.location.href='./MyChangeList.aspx'">
                                                    </span>
                                                </td>
                                                <td class="tabSep" width="4">
                                                    &nbsp;
                                                </td>
                                                <td class="unselectedTab" valign="middle" align="center" width="100" height="20">
                                                    <span style="cursor: hand" onclick="window.location.href='./MyTSList.aspx'"></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" colspan="6" height="10">
                                        <font face="宋体"></font>
                                    </td>
                                </tr>
                                <tr height="25">
                                    <td valign="middle" width="20">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td valign="middle" colspan="5">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblPriority" runat="server"></asp:Label><asp:DropDownList ID="ddlPriority"
                                                        runat="server" Width="80">
                                                    </asp:DropDownList>
                                                    <asp:Label ID="lblStatus" runat="server"></asp:Label><asp:DropDownList ID="ddlStatus"
                                                        runat="server">
                                                    </asp:DropDownList>
                                                    <asp:Label ID="lblSampleStatus" runat="server" Visible="False"></asp:Label><asp:DropDownList
                                                        ID="ddlSampleStatus" runat="server" Width="120" Visible="False">
                                                    </asp:DropDownList>
                                                    <asp:Label ID="lblAPN" runat="server"></asp:Label><asp:TextBox ID="txtAPN" runat="server"
                                                        Width="100px" CssClass="TEXTBOX"></asp:TextBox><asp:ImageButton ID="btnSearch" runat="server">
                                                        </asp:ImageButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" colspan="6" height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="middle" width="10">
                                        &nbsp;
                                    </td>
                                    <td valign="top" colspan="5">
                                        <asp:Label ID="lbTotalCount" runat="server"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" colspan="6" height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="middle" width="10">
                                    </td>
                                    <td class="task" colspan="5">
                                        <asp:DataGrid ID="dgSearch" runat="server" AllowSorting="True" BorderColor="#336666"
                                            BorderStyle="Solid" BorderWidth="1px" BackColor="White" CellPadding="4" GridLines="Horizontal"
                                            AutoGenerateColumns="false" PageSize="50" AllowPaging="True">
                                            <FooterStyle ForeColor="#333333" BackColor="#eeeeee"></FooterStyle>
                                            <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#339966" HorizontalAlign="Center">
                                            </SelectedItemStyle>
                                            <ItemStyle Font-Size="11pt" ForeColor="#333333" BackColor="white" HorizontalAlign="Center">
                                            </ItemStyle>
                                            <HeaderStyle Font-Size="11pt" HorizontalAlign="Center" Font-Bold="True" ForeColor="Black"
                                                BackColor="#a5a5a5"></HeaderStyle>
                                            <Columns>
                                                <asp:TemplateColumn Visible="false">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="chbAll" runat="server" AutoPostBack="True"></asp:CheckBox>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server"></asp:CheckBox>
                                                    </ItemTemplate>
                                                </asp:TemplateColumn>
                                                <asp:BoundColumn Visible="False" DataField="FlowID"></asp:BoundColumn>
                                                <asp:HyperLinkColumn DataNavigateUrlField="FlowID" DataNavigateUrlFormatString="workflowexecution.aspx?AppID={0}"
                                                    SortExpression="FlowID" DataTextField="FlowID" HeaderText="FlowId" HeaderStyle-Width="140"
                                                    ItemStyle-Width="140"></asp:HyperLinkColumn>
                                                <asp:BoundColumn DataField="RequesterNameEN" HeaderText="Requestor" ItemStyle-Width="200">
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="CurrentStepName" HeaderText="CurrentStepName" ItemStyle-Width="200">
                                                </asp:BoundColumn>
                                            </Columns>
                                            <PagerStyle Font-Size="11pt" HorizontalAlign="Center" Visible="false" BackColor="White"
                                                CssClass="paging" Mode="NumericPages"></PagerStyle>
                                        </asp:DataGrid><br>
                                        <table id="tblPageNavi" cellspacing="0" cellpadding="0" width="100%" border="0" runat="server">
                                            <tr>
                                                <td valign="middle" width="10">
                                                    &nbsp;
                                                </td>
                                                <td align="left">
                                                    <span id="spnPageFooter" runat="server"></span>
                                                </td>
                                                <td align="right">
                                                    <asp:ImageButton ID="btnPageFirst" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/pg_first_inact.gif">
                                                    </asp:ImageButton>&nbsp;
                                                    <asp:ImageButton ID="btnPagePrev" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/pg_pre_inact.gif">
                                                    </asp:ImageButton>&nbsp;
                                                    <asp:ImageButton ID="btnPageNext" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/pg_next_inact.gif">
                                                    </asp:ImageButton>&nbsp;
                                                    <asp:ImageButton ID="btnPageLast" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/pg_last_inact.gif">
                                                    </asp:ImageButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" colspan="6" height="10">
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" align="right" colspan="6">
                                        <asp:ImageButton ID="btnTQSample" runat="server" Visible="false"></asp:ImageButton>&nbsp;
                                        <asp:ImageButton ID="btnIQSample" runat="server" Visible="false"></asp:ImageButton>&nbsp;
                                        <asp:ImageButton ID="btnReceiveSample" runat="server" Visible="False"></asp:ImageButton>&nbsp;
                                        <asp:ImageButton ID="btnExport" runat="server"></asp:ImageButton>&nbsp;
                                        <asp:ImageButton ID="btnPrint" runat="server"></asp:ImageButton>
                                    </td>
                                </tr>
                            </table>
                            <asp:TextBox ID="tbShowTQSample" Style="display: none" runat="server"></asp:TextBox><asp:TextBox
                                ID="tbShowIQSample" Style="display: none" runat="server"></asp:TextBox><asp:TextBox
                                    ID="tbShowPrintForm" Style="display: none" runat="server"></asp:TextBox><asp:TextBox
                                        ID="tbShowSampleReceive" Style="display: none" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <asp:PlaceHolder ID="MainBody" runat="server"></asp:PlaceHolder>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
